//
//  ZkjTextView.swift
//  SinaWeiBo
//
//  Created by ZKJ on 2017/9/21.
//  Copyright © 2017年 ZKJ. All rights reserved.
//

import UIKit
import SnapKit

class ZkjTextView: UITextView {
    
    // MARK:- 懒加载的属性
    lazy var placeHolderLabel : UILabel = UILabel()
    
    // MARK:- 构造函数
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        setUpUI()
    }
}

// MARK:- 布局UI界面
extension ZkjTextView {
    fileprivate func setUpUI() {
        
        placeHolderLabel.font = font
        placeHolderLabel.textColor = UIColor.lightGray
        placeHolderLabel.text = "分享新鲜事儿..."
        addSubview(placeHolderLabel)
        placeHolderLabel.snp.makeConstraints { (make) in
            make.top.equalTo(7)
            make.leading.equalTo(4)
        }
    }
}




